<template>
	<view class="item" @click="open_details">
		<view class="d1">
			<text class="txt">{{props.item.title}}</text>
		</view>
		<view class="d2">
			<text class="txt">{{props.item.content}}</text>
		</view>
		<!-- #ifdef h5 -->
		<text>BBBBBBBBBB</text>
		<!-- #endif -->
		<view class="d3">
			<text class="txt">{{ props.item.nickname }} {{Tl_timestamp2(props.item.create_time)}}</text>
		</view>
	</view>
</template>
<script setup>
import {reactive,onMounted,defineProps } from 'vue'
import { Tl_timestamp2 } from '@/common/tools';
const props = defineProps({
	item:Object
})
const open_details = ()=>{
	uni.navigateTo({
		url: '/pages/details/details?id='+props.item._id
	});
}
</script>
<style lang="scss">
.item{
	width:750rpx;
	margin: 10rpx 0;
	.d1{
		margin: 0 10rpx;
		.txt{
			font-size: 30rpx;
			font-weight: 500;
			color: #005da6;
			line-height: 40rpx;
		}
	}
	.d2{
		margin: 0 10rpx;
		.txt{
			font-size: 30rpx;
			font-weight: 500;
			line-height: 40rpx;
			color: #555;
			overflow: hidden;
			text-overflow: ellipsis;
			height: 120rpx;
		}
	}
	.d3{
		margin: 0 10rpx;
		.txt{
			font-size: 26rpx;
			font-weight: 500;
			color: #999;
			line-height: 40rpx;
		}
	}
}
</style>